const connection = require("../db/connection")

function jiancha(mc){
    connection.query("select * from sp where 名称 = ?", [mc], (error, spmc) => {
        if (error) {
            console.log("该商品不存在", error)
            process.exit(1)
        }
        if (spmc.length <= 0) {
            console.log("该商品不存在");
            process.exit(1)
        }
    })
}
module.exports = jiancha